import axios,{url} from './'

export const getHots = async (current,size) => {
    let res = await axios({
      method: 'get',
      url: url + '/hots',
      params: {
        current,
        size,
      },
    });
    return res.data;
  };

  export const getSoons = async (current,size) => {
    let res = await axios({
      method: 'get',
      url: url + '/soons',
      params: {
        current,
        size,
      },
    });
    return res.data;
  };